package com.nageoffer.shortlink.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nageoffer.shortlink.admin.dao.entity.UserDO;
import com.nageoffer.shortlink.admin.dto.req.UserLoginReqDTO;
import com.nageoffer.shortlink.admin.dto.req.UserRegisterReqDTO;
import com.nageoffer.shortlink.admin.dto.req.UserUpdateReqDTO;
import com.nageoffer.shortlink.admin.dto.resp.UserLoginRespDTO;
import com.nageoffer.shortlink.admin.dto.resp.UserRespDTO;

public interface UserService extends IService<UserDO> {
    UserRespDTO getUserByUsername(String username);

    Boolean availableUsernmae(String username);

    void register(UserRegisterReqDTO reqParam);
    //修改用户信息
    void updateUserInfo(UserUpdateReqDTO reqParam);

    //用户登录
     UserLoginRespDTO login(UserLoginReqDTO reqParam);

     //检查用户是否登录
     Boolean checkLogin(String username, String token);

     void logout(String username,String token);
}
